package com.xb.service;


import com.xb.entity.Role;
import com.xb.util.Result;

import java.util.List;

/**
 * Service接口
 */
public interface IRoleService {

    /**
     * 分页查询列表
     *
     * @param role
     * @return 集合
     */
    public Result selectRoleList(Role role, Integer page, Integer limit);

    public Result add(Role role);

    public Result update(Role role);

    public Result del(Integer id);

    /**
     * 获取全部角色
     *
     * @return 结果集
     */
    public List<Role> selectAllRole();

    public List<Role> selectAllRoleByEmail(String email);

    public Result getRole();
}
